import greenfoot.*;  // (Actor, World, Greenfoot, GreenfootImage)

public class CrabWorld extends World
{
    /**
     * Create the crab world (the beach). Our world has a size 
     * of 560x560 cells, where every cell is just 1 pixel.
     */
    public CrabWorld() 
    {
        super(560, 560, 1);
        Crab c = new Crab();
        addObject(c, 150, 250); 
       for(int i=1;i<4;i++) {
           Lobster l=new Lobster();
           addObject(l,100+i*100,450);
        }
       for (int i = 0; i < 5; i++) {
            Worm w = new Worm();
            addObject(w, 70 + i * 50, 150 + i * 50);
        }
       for (int i = 0; i < 5; i++) {
            Worm w = new Worm();
            addObject(w, 70 + i * 100, 150);
        }
       for (int i = 0; i < 5; i++) {
            Worm w = new Worm();
            addObject(w, 270 + i * 50, 350 - i * 50);
        }
       for (int i = 0; i < 5; i++) {
            Worm w = new Worm();
            addObject(w, 70 +i * 100,70);
        }
        
       GreenfootImage bg = getBackground();
       bg.setFont(new Font(true, false, 40));
       bg.setColor(Color.WHITE);
       bg.drawString("小螃蟹LXZ~~",50,50);
       
    }
 
       public void drawNum(int num){
        GreenfootImage image = getBackground();
        Color color = new Color(255, 0, 0);
        image.setColor(color);
      
    }

}